<div class="main_top">
	<ul class="pagenavi">
		<li><a href="/">首页</a></li>
		<li class="li2"><a href="/my/">我的主页</a></li>
		<li class="li2">我的点评</li>
	</ul>
</div>
<div class="clear"></div>
<div class="clear"></div>
<!--main top end -->
{{include file="mypage_left.tpl"}}
<div class="main_right">
	<h2>我的点评</h2>
	<div class="main_content">
		<table cellpadding="0" cellspacing="0" width="100%" style="table-layout:fixed;">
			{{if $rows}}
				{{foreach key=key item=item from=$rows}}
				<tr>
					<td class="{{$item.bgcolor}}"><a class="corp" href="/corporation/{{$item.cor_id}}/" target="_blank">{{$item.corName}}</a></td>
					<td class="{{$item.bgcolor}}">{{$item.content}}</td>
					<td align="center" class="{{$item.bgcolor}}">{{$item.estTime}}&nbsp;<input id="{{$item.est_id}}" type="button" value="置顶" class="zhiding" onclick="setTop('{{$item.est_id}}')"></td>
				</tr>
				{{/foreach}}
			{{else}}
				<tr><td><span class="noresult">对不起，您暂时还没有发表过评论！&nbsp;<a href="/addestimate.php">我要评论</a></span></td></tr>
			{{/if}}
		</table>
	</div>
	<div class="fenye">
		{{$pageList}}
	</div>
</div>
<!--main_right end -->
<div class="clear"></div>
</div>
<!--main end -->
<script type="text/javascript" src="/script/jquery.js"></script>
<script type="text/javascript" src="/script/common.js"></script>
<script type="text/javascript">
function setTop(est_id){
	$.ajax({
		type:"POST",
		url:"myestimate.php?cmd=ajaxSetTop&est_id="+est_id,
		success:function(msg){
			var obj = document.getElementById(msg);
			if(typeof(obj) != "undefined"){
				obj.value = "已置顶";
			}
		}            
	 });
}
</script>